# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=keybinder
pkgver=0.3.0
pkgrel=2
pkgdesc="A library for registering global keyboard shortcuts"
url="https://github.com/kupferlauncher/keybinder/tree/keybinder-legacy"
arch="all"
license="GPL-2.0-or-later"
options="!check" # No test suite
depends_dev="libxext-dev"
makedepends="gtk+2.0-dev"
subpackages="$pkgname-dev $pkgname-doc"
source="https://dev.alpinelinux.org/archive/keybinder/keybinder-$pkgver.tar.gz"

prepare() {
	default_prepare
	update_config_sub
}

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--disable-static \
		--disable-python \
		--disable-lua
	make
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="93ed88caa8246286907b9744383487391412b52be534cf085a6090c390bab181dc617721bb9216f29fd8314a40f65e27630d699ac6cb1657e0641a3d472eb22e  keybinder-0.3.0.tar.gz"
